package com.atguigu.gulimall.gateway;

import com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1、开启服务的注册发现
 * （配置nacos的注册中心地址）
 * 禁止 SpringBoot 自动注入数据源配置
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,IdentifierGeneratorAutoConfiguration.class})
public class GulimallGatewayApplication {

    public static void main(String[] args) {

        SpringApplication.run(GulimallGatewayApplication.class, args);
    }

}
